use webrtc::ice::{agent::agent_config::AgentConfig, network_type::NetworkType, url::Url};

pub fn get_ice_config() -> anyhow::Result<AgentConfig> {
    let config = AgentConfig {
        urls: vec![
            Url::parse_url("stun:39.106.1.82:3478")?,
            // Url::parse_url("stun:stun.l.google.com:19302")?,
        ],
        network_types: vec![NetworkType::Udp4, NetworkType::Tcp4, NetworkType::Tcp6],
        ..Default::default()
    };
    Ok(config)
}
